package cz.spock.core.entity.acl;

import javax.persistence.Entity;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

/**
 * addition to spring security granted authorities
 * 
 * this entity is supposed to provide mechanism for access control system
 * 
 * @author miso
 *
 */
@Entity
@Cached
public class Role {

    @Id
    private Long id;
    
    private String name;
    @Unindexed
    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
}
